package com.dhms.vostok1.utils

class AppFeatureManager {
    companion object {
        val damagePermission: List<String> = listOf()
        val faultPermission: List<String> = listOf()
        val spotPatrolPermission: List<String> = listOf()
        val lubricationPermission: List<String> = listOf()
        val maintenancePermission: List<String> = listOf()
        val repairPermission: List<String> = listOf()
        val knowledgePermission: List<String> = listOf()
        val purchasePermission: List<String> = listOf()
        val warehousingPermission: List<String> = listOf()
        val approvalPermission: List<String> = listOf()

        const val perilUrl = "/app/peril_manage"
        const val faultUrl = "/app/fault_manage"
        const val repairUrl = "/app/repair/task"
        const val repairDetailUrl = "/app/repair/task/detail"
        const val knowledgeUrl = "/app/knowledge_base"
        const val approvalUrl = "/app/approval_center"
        const val purchaseUrl = "/app/supplychain"
        const val warehousingUrl = "/app/warehouse"
        const val warehouseInUrl = "/app/warehouse_in"
        const val equipmentReturnUrl = "/app/equipment_return"
        const val warehouseOutUrl = "/app/warehouse_out"
        const val equipmentRequisitionUrl = "/app/equipment_requisition"

        //检修计划审批详情页
        const val repairPlanDetail = "/app/repair/plan/detail"

        ///设备详情
        const val deviceDetailUrl = "/app/device_detail"


        //设备归还
        const val returnEquipmentDetail = "/app/equipment_return_detail/approval/"//审批详情页
        const val returnEquipment = "/app/equipment_return/detail/"//设备归还详情页

        //设备申领
        const val equipmentRequisitionDetail = "/app/equipment_requisition_detail/approval/"//审批详情页
        const val equipmentRequisition = "/app/equipment_requisition/detail/"//设备申领详情页

        //设备出库
        const val equipmentWarehouse = "/app/warehouse_out_detail/approval/"//出库确认详情页
        //原生跳转 润滑，维保，点检

    }
}

//审批中心的 url
class ApprovalCenterUrl {
    companion object {

        // 采购 设备代办:
        const val purchaseOrderDeviceApprovalWillUrl =
            "/app/approval_center/purchase_order/device_approval_will"

        // 采购 设备已办:
        const val purchaseOrderDeviceApprovalDoneUrl =
            "/app/approval_center/purchase_order/device_approval_done"

        // 采购 备件代办:
        const val sparePartsOrderPartApprovalWillUrl =
            "/app/approval_center/spare_parts_order/part_approval_will"

        // 采购 备件已办:
        const val sparePartsOrderPartApprovalDoneUrl =
            "/app/approval_center/spare_parts_order/part_approval_done"

        // 入库 设备代办:
        const val warehouseDetailDeviceApprovalWillUrl =
            "/app/warehouse_detail/device_approval_will"

        // 入库 设备已办:
        const val warehouseDetailDeviceApprovalDoneUrl =
            "/app/warehouse_detail/device_approval_done"

        // 入库 备件代办:
        const val warehouseDetailPartApprovalWillUrl = "/app/warehouse_detail/part_approval_will"

        // 入库 备件已办:
        const val warehouseDetailPartApprovalDoneUrl = "/app/warehouse_detail/part_approval_done"

        //申请人 采购设备申请
        const val supplyChainDeviceUrl = "/app/supplychain/device"

        const val supplyChainDevicePartUrl = "/app/supplychain/part"

        //申请人 入库设备申请
        const val warehouseDeviceUrl = "/app/warehouse/device"

        //入库备件审批
        const val warehousePartUrl = "/app/warehouse/part"

        //申领
        const val equipmentRequisitionDetailUrl = "/app/equipment_requisition_detail/approval"

        //归还
        const val equipmentReturnDetailUrl = "/app/equipment_return_detail/approval"

        //出库
        const val warehouseOutDetailUrl = "/app/warehouse_out_detail/approval"

    }
}

class FlutterModule {
    companion object {
        const val flutterEngineId = "flutterEngineId"
        const val repairCreate = "repairCreate"
        var nativeParams: String? = null
    }
}